//
//  musicrunCell.m
//  享动
//
//  Created by lanou on 16/4/8.
//  Copyright © 2016年 HHUI. All rights reserved.
//

#import "musicrunCell.h"
#import <UIImageView+WebCache.h>
@implementation musicrunCell

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        self.picImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, (KWIDTH-40)/3, (KWIDTH-40)/3)];
        self.picImageView.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_picImageView];
        
        self.titlelabel = [[UILabel alloc]initWithFrame:CGRectMake(0, (KWIDTH-40)/3+5, (KWIDTH-40)/3, 20)];
        self.titlelabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:_titlelabel];
    }
    return self;
}

- (void)cellforModel:(musicRunModel *)model;
{
    _model = model;
    [self.picImageView sd_setImageWithURL:[NSURL URLWithString:model.albumUrl]];
}
@end
